package cn.xfdzx.android.apps.shop.contract;

import java.util.Map;

import cn.xfdzx.android.apps.shop.base.BaseView;
import cn.xfdzx.android.apps.shop.bean.AddAddressBeen;
import cn.xfdzx.android.apps.shop.bean.BaseObjectBean;
import cn.xfdzx.android.apps.shop.bean.ShopInDetailsBeen;
import io.reactivex.Flowable;


/**
 * @author azheng
 * @date 2018/6/4.
 * Description：
 */

public interface ShopManagerContract {
    interface Model {
        Flowable<BaseObjectBean> anchorApply();
        Flowable<ShopInDetailsBeen> updateBusinessInfo(Map<String,Object> map, String type);
    }

    interface View extends BaseView {
        @Override
        void showLoading();

        @Override
        void hideLoading();

        @Override
        void onError(Throwable throwable);

        void onAnchorApplySuccess(BaseObjectBean bean);

        /**更新店铺信息成功*/
        void onupdateBusinessInfoSuccess(ShopInDetailsBeen bean,String type);
    }

    interface Presenter {
        /**
         *
         */
        void anchorApply( );
        /**
         * 更新店铺营业信息
         * */
        void updateBusinessInfo(Map<String,Object> map,String type);
    }
}
